define([
        'SpinJS',
        'GlobalConfiguration'
       ],
function (
          SpinJS,
          GConfigs
          ){
    var SpinClass= function () {
        
    };
    var spinner = "";
    SpinClass.prototype.showSpin = function (targetId) {
        var target = document.getElementById(targetId);
        spinner = new SpinJS(GConfigs.SpinJSOptions).spin(target);        
    };
    SpinClass.prototype.hideSpin = function () {
        spinner.stop();
    };
   
    return SpinClass;
});